package com.wxmit.ot.extensions.java.lang.String;

import manifold.ext.rt.api.Extension;

import java.util.Objects;

/**
 * String 扩展类
 *
 * @author huangxiong
 * @version V1.0
 * @date 2023/2/22 10:03
 */
@Extension
public class OtStringExtension {

    /**
     *  添加静态方法
     */
    @Extension
    public static String of(CharSequence ...arg){
        Objects.requireNonNull(arg);
        StringBuffer sb = new StringBuffer();
        arg.stream().forEach(sb::append);
        return sb.toString();
    }


}
